<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>NVTX C API Reference: nvToolsExtCounters.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">NVTX C API Reference<span id="projectnumber">&#160;v3</span>
   </div>
   <div id="projectbrief">NVIDIA Tools Extension Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function() { init_codefold(0); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_48b95086e7eb28d79ef283b47c5fa0c6.html">nvtx3</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle"><div class="title">nvToolsExtCounters.h</div></div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span><span class="comment">/*</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno">    2</span><span class="comment"> * SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION &amp; AFFILIATES. All rights reserved.</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno">    3</span><span class="comment"> * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno">    4</span><span class="comment"> *</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno">    5</span><span class="comment"> * Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno">    6</span><span class="comment"> * you may not use this file except in compliance with the License.</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno">    7</span><span class="comment"> * You may obtain a copy of the License at</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span><span class="comment"> *</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno">    9</span><span class="comment"> *     http://www.apache.org/licenses/LICENSE-2.0</span></div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno">   10</span><span class="comment"> *</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span><span class="comment"> * Unless required by applicable law or agreed to in writing, software</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span><span class="comment"> * distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno">   13</span><span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno">   14</span><span class="comment"> * See the License for the specific language governing permissions and</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno">   15</span><span class="comment"> * limitations under the License.</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno">   16</span><span class="comment"> *</span></div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno">   17</span><span class="comment"> * Licensed under the Apache License v2.0 with LLVM Exceptions.</span></div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span><span class="comment"> * See https://nvidia.github.io/NVTX/LICENSE.txt for license information.</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span><span class="comment"> */</span></div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno">   20</span> </div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno">   21</span><span class="preprocessor">#if defined(NVTX_AS_SYSTEM_HEADER)</span></div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno">   22</span><span class="preprocessor">#if defined(__clang__)</span></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span><span class="preprocessor">#pragma clang system_header</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span><span class="preprocessor">#elif defined(__GNUC__) || defined(__NVCOMPILER)</span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span><span class="preprocessor">#pragma GCC system_header</span></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span><span class="preprocessor">#elif defined(_MSC_VER)</span></div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno">   27</span><span class="preprocessor">#pragma system_header</span></div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno">   29</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno">   30</span> </div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno">   31</span><span class="preprocessor">#include &quot;nvToolsExtPayload.h&quot;</span></div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno">   32</span> </div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno">   36</span><span class="preprocessor">#ifndef NVTX_EXT_COUNTERS_COMPATID</span></div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno">   37</span><span class="preprocessor">#define NVTX_EXT_COUNTERS_COMPATID 0x0102</span></div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno">   38</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno">   39</span> </div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno">   44</span><span class="preprocessor">#ifndef NVTX_EXT_COUNTERS_MODULEID</span></div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno">   45</span><span class="preprocessor">#define NVTX_EXT_COUNTERS_MODULEID 4</span></div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno">   46</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno">   47</span> </div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno">   48</span><span class="preprocessor">#ifndef NVTX_COUNTER_IDS_V1</span></div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno">   49</span><span class="preprocessor">#define NVTX_COUNTER_IDS_V1</span></div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno">   50</span> </div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno">   52</span><span class="preprocessor">#define NVTX_COUNTER_ID_NONE          0</span></div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno">   53</span> </div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno">   55</span><span class="preprocessor">#define NVTX_COUNTER_ID_STATIC_START  (1 &lt;&lt; 24)</span></div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno">   56</span> </div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno">   58</span><span class="preprocessor">#define NVTX_COUNTER_ID_DYNAMIC_START (NVTX_STATIC_CAST(uint64_t, 1) &lt;&lt; 32)</span></div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno">   59</span> </div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno">   60</span><span class="preprocessor">#endif </span><span class="comment">/* NVTX_COUNTER_IDS_V1 */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno">   61</span> </div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno">   63</span><span class="preprocessor">#ifndef NVTX_COUNTER_SAMPLES_V1</span></div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno">   64</span><span class="preprocessor">#define NVTX_COUNTER_SAMPLES_V1</span></div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno">   65</span> </div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno">   66</span><span class="preprocessor">#define NVTX_COUNTER_SAMPLE_ZERO        0</span></div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno">   67</span><span class="preprocessor">#define NVTX_COUNTER_SAMPLE_UNCHANGED   1</span></div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno">   68</span><span class="preprocessor">#define NVTX_COUNTER_SAMPLE_UNAVAILABLE 2 </span><span class="comment">/* Failed to get a counter sample. */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno">   69</span> </div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno">   70</span><span class="preprocessor">#endif </span><span class="comment">/* NVTX_COUNTER_SAMPLES_V1 */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno">   71</span> </div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno">   77</span><span class="preprocessor">#ifndef NVTX_COUNTER_BATCH_FLAGS_V1</span></div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno">   78</span><span class="preprocessor">#define NVTX_COUNTER_BATCH_FLAGS_V1</span></div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno">   79</span> </div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno">   80</span><span class="preprocessor">#define NVTX_COUNTER_BATCH_FLAG_BEGINTIME_INTERVAL_PAIR (1 &lt;&lt; 32)</span></div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno">   81</span><span class="preprocessor">#define NVTX_COUNTER_BATCH_FLAG_ENDTIME_INTERVAL_PAIR   (2 &lt;&lt; 32)</span></div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno">   82</span> </div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno">   83</span><span class="preprocessor">#endif </span><span class="comment">/* NVTX_COUNTER_BATCH_FLAGS_V1 */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno">   84</span> </div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno">   85</span><span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno">   86</span><span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno">   87</span><span class="preprocessor">#endif </span><span class="comment">/* __cplusplus */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno">   88</span> </div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno">   89</span><span class="preprocessor">#ifndef NVTX_COUNTER_TYPEDEFS_V1</span></div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno">   90</span><span class="preprocessor">#define NVTX_COUNTER_TYPEDEFS_V1</span></div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno">   91</span> </div>
<div class="foldopen" id="foldopen00095" data-start="{" data-end="};">
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"><a class="line" href="structnvtx_counter_attr__t.html">   95</a></span><span class="keyword">typedef</span> <span class="keyword">struct </span>nvtxCounterAttr_v1</div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno">   96</span>{</div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno">   97</span>    <span class="keywordtype">size_t</span> structSize;</div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno">   98</span> </div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"><a class="line" href="structnvtx_counter_attr__t.html#a383083b3ae94dedfb59ddca685abe0eb">  103</a></span>    uint64_t <a class="code hl_variable" href="structnvtx_counter_attr__t.html#a383083b3ae94dedfb59ddca685abe0eb">schemaId</a>;</div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno">  104</span> </div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"><a class="line" href="structnvtx_counter_attr__t.html#a9bc076586c6c5627632eb1bcd70b861e">  106</a></span>    <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code hl_variable" href="structnvtx_counter_attr__t.html#a9bc076586c6c5627632eb1bcd70b861e">name</a>;</div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno">  107</span> </div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"><a class="line" href="structnvtx_counter_attr__t.html#a029534e6f708be20dbb6e220474b2d52">  112</a></span>    <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code hl_variable" href="structnvtx_counter_attr__t.html#a029534e6f708be20dbb6e220474b2d52">description</a>;</div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno">  113</span> </div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"><a class="line" href="structnvtx_counter_attr__t.html#a02bba10c2782ffd40efb00155b163917">  120</a></span>    uint64_t <a class="code hl_variable" href="structnvtx_counter_attr__t.html#a02bba10c2782ffd40efb00155b163917">scopeId</a>;</div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno">  121</span> </div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"><a class="line" href="structnvtx_counter_attr__t.html#a2ab25966e298a5742776ae1aa3bdf401">  129</a></span>    <span class="keyword">const</span> <a class="code hl_struct" href="structnvtx_semantics_header__t.html">nvtxSemanticsHeader_t</a>* <a class="code hl_variable" href="structnvtx_counter_attr__t.html#a2ab25966e298a5742776ae1aa3bdf401">semantics</a>;</div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno">  130</span> </div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"><a class="line" href="structnvtx_counter_attr__t.html#a74a6483547eb7f7946020dc2ffcf84fe">  136</a></span>    uint64_t <a class="code hl_variable" href="structnvtx_counter_attr__t.html#a74a6483547eb7f7946020dc2ffcf84fe">counterId</a>;</div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno">  137</span>} <a class="code hl_struct" href="structnvtx_counter_attr__t.html">nvtxCounterAttr_t</a>;</div>
</div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno">  138</span> </div>
<div class="foldopen" id="foldopen00147" data-start="{" data-end="};">
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"><a class="line" href="structnvtx_counter_batch__t.html">  147</a></span><span class="keyword">typedef</span> <span class="keyword">struct </span>nvtxCounterBatch_v1</div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno">  148</span>{</div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"><a class="line" href="structnvtx_counter_batch__t.html#a55051fa530e11935d88669e619c6b6a4">  153</a></span>    uint64_t <a class="code hl_variable" href="structnvtx_counter_batch__t.html#a55051fa530e11935d88669e619c6b6a4">counterId</a>;</div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno">  154</span> </div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"><a class="line" href="structnvtx_counter_batch__t.html#a4196d6a8a534213ac31222cc19fb174e">  156</a></span>    <span class="keyword">const</span> <span class="keywordtype">void</span>* <a class="code hl_variable" href="structnvtx_counter_batch__t.html#a4196d6a8a534213ac31222cc19fb174e">counters</a>;</div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno">  157</span> </div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"><a class="line" href="structnvtx_counter_batch__t.html#ada5def99a25f1654b55a7b92e02846dd">  159</a></span>    <span class="keywordtype">size_t</span> <a class="code hl_variable" href="structnvtx_counter_batch__t.html#ada5def99a25f1654b55a7b92e02846dd">countersSize</a>;</div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno">  160</span> </div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"><a class="line" href="structnvtx_counter_batch__t.html#a3b577fef504751dfe3427916f6e273d8">  165</a></span>    uint64_t <a class="code hl_variable" href="structnvtx_counter_batch__t.html#a3b577fef504751dfe3427916f6e273d8">flags</a>;</div>
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno">  166</span> </div>
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"><a class="line" href="structnvtx_counter_batch__t.html#a22e39eb11f801703154a9530474991ac">  175</a></span>    <span class="keyword">const</span> int64_t* <a class="code hl_variable" href="structnvtx_counter_batch__t.html#a22e39eb11f801703154a9530474991ac">timestamps</a>;</div>
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno">  176</span> </div>
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno"><a class="line" href="structnvtx_counter_batch__t.html#afb5cc56e00d8bdb1edc1058d4c36ef35">  178</a></span>    <span class="keywordtype">size_t</span> <a class="code hl_variable" href="structnvtx_counter_batch__t.html#afb5cc56e00d8bdb1edc1058d4c36ef35">timestampsSize</a>;</div>
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno">  179</span>} <a class="code hl_struct" href="structnvtx_counter_batch__t.html">nvtxCounterBatch_t</a>;</div>
</div>
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno">  180</span> </div>
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno">  181</span><span class="preprocessor">#endif </span><span class="comment">/* NVTX_COUNTER_TYPEDEFS_V1 */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno">  182</span> </div>
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno">  183</span><span class="preprocessor">#ifndef NVTX_COUNTER_API_FUNCTIONS_V1</span></div>
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno">  184</span><span class="preprocessor">#define NVTX_COUNTER_API_FUNCTIONS_V1</span></div>
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno">  185</span> </div>
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno">  195</span>NVTX_DECLSPEC uint64_t NVTX_API nvtxCounterRegister(</div>
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno">  196</span>    nvtxDomainHandle_t hDomain,</div>
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno">  197</span>    <span class="keyword">const</span> <a class="code hl_struct" href="structnvtx_counter_attr__t.html">nvtxCounterAttr_t</a>* attr);</div>
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno">  198</span> </div>
<div class="line"><a id="l00207" name="l00207"></a><span class="lineno">  207</span>NVTX_DECLSPEC <span class="keywordtype">void</span> NVTX_API nvtxCounterSampleInt64(</div>
<div class="line"><a id="l00208" name="l00208"></a><span class="lineno">  208</span>    nvtxDomainHandle_t hDomain,</div>
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno">  209</span>    uint64_t counterId,</div>
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno">  210</span>    int64_t value);</div>
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno">  211</span> </div>
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno">  220</span>NVTX_DECLSPEC <span class="keywordtype">void</span> NVTX_API nvtxCounterSampleFloat64(</div>
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno">  221</span>    nvtxDomainHandle_t hDomain,</div>
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno">  222</span>    uint64_t counterId,</div>
<div class="line"><a id="l00223" name="l00223"></a><span class="lineno">  223</span>    <span class="keywordtype">double</span> value);</div>
<div class="line"><a id="l00224" name="l00224"></a><span class="lineno">  224</span> </div>
<div class="line"><a id="l00234" name="l00234"></a><span class="lineno">  234</span>NVTX_DECLSPEC <span class="keywordtype">void</span> NVTX_API nvtxCounterSample(</div>
<div class="line"><a id="l00235" name="l00235"></a><span class="lineno">  235</span>    nvtxDomainHandle_t hDomain,</div>
<div class="line"><a id="l00236" name="l00236"></a><span class="lineno">  236</span>    uint64_t counterId,</div>
<div class="line"><a id="l00237" name="l00237"></a><span class="lineno">  237</span>    <span class="keyword">const</span> <span class="keywordtype">void</span>* value,</div>
<div class="line"><a id="l00238" name="l00238"></a><span class="lineno">  238</span>    <span class="keywordtype">size_t</span> size);</div>
<div class="line"><a id="l00239" name="l00239"></a><span class="lineno">  239</span> </div>
<div class="line"><a id="l00247" name="l00247"></a><span class="lineno">  247</span>NVTX_DECLSPEC <span class="keywordtype">void</span> NVTX_API nvtxCounterSampleNoValue(</div>
<div class="line"><a id="l00248" name="l00248"></a><span class="lineno">  248</span>    nvtxDomainHandle_t hDomain,</div>
<div class="line"><a id="l00249" name="l00249"></a><span class="lineno">  249</span>    uint64_t counterId,</div>
<div class="line"><a id="l00250" name="l00250"></a><span class="lineno">  250</span>    uint8_t reason);</div>
<div class="line"><a id="l00251" name="l00251"></a><span class="lineno">  251</span> </div>
<div class="line"><a id="l00262" name="l00262"></a><span class="lineno">  262</span>NVTX_DECLSPEC <span class="keywordtype">void</span> NVTX_API nvtxCounterBatchSubmit(</div>
<div class="line"><a id="l00263" name="l00263"></a><span class="lineno">  263</span>    nvtxDomainHandle_t hDomain,</div>
<div class="line"><a id="l00264" name="l00264"></a><span class="lineno">  264</span>    <span class="keyword">const</span> <a class="code hl_struct" href="structnvtx_counter_batch__t.html">nvtxCounterBatch_t</a>* counterData);</div>
<div class="line"><a id="l00265" name="l00265"></a><span class="lineno">  265</span> </div>
<div class="line"><a id="l00266" name="l00266"></a><span class="lineno">  266</span><span class="preprocessor">#endif </span><span class="comment">/* NVTX_COUNTER_API_FUNCTIONS_V1 */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00267" name="l00267"></a><span class="lineno">  267</span> </div>
<div class="line"><a id="l00268" name="l00268"></a><span class="lineno">  268</span><span class="preprocessor">#ifndef NVTX_COUNTER_CALLBACK_ID_V1</span></div>
<div class="line"><a id="l00269" name="l00269"></a><span class="lineno">  269</span><span class="preprocessor">#define NVTX_COUNTER_CALLBACK_ID_V1</span></div>
<div class="line"><a id="l00270" name="l00270"></a><span class="lineno">  270</span> </div>
<div class="line"><a id="l00271" name="l00271"></a><span class="lineno">  271</span><span class="preprocessor">#define NVTX3EXT_CBID_nvtxCounterRegister           0</span></div>
<div class="line"><a id="l00272" name="l00272"></a><span class="lineno">  272</span><span class="preprocessor">#define NVTX3EXT_CBID_nvtxCounterSampleInt64        1</span></div>
<div class="line"><a id="l00273" name="l00273"></a><span class="lineno">  273</span><span class="preprocessor">#define NVTX3EXT_CBID_nvtxCounterSampleFloat64      2</span></div>
<div class="line"><a id="l00274" name="l00274"></a><span class="lineno">  274</span><span class="preprocessor">#define NVTX3EXT_CBID_nvtxCounterSample             3</span></div>
<div class="line"><a id="l00275" name="l00275"></a><span class="lineno">  275</span><span class="preprocessor">#define NVTX3EXT_CBID_nvtxCounterSampleNoValue      4</span></div>
<div class="line"><a id="l00276" name="l00276"></a><span class="lineno">  276</span><span class="preprocessor">#define NVTX3EXT_CBID_nvtxCounterBatchSubmit        5</span></div>
<div class="line"><a id="l00277" name="l00277"></a><span class="lineno">  277</span> </div>
<div class="line"><a id="l00278" name="l00278"></a><span class="lineno">  278</span><span class="preprocessor">#endif </span><span class="comment">/* NVTX_COUNTER_CALLBACK_ID_V1 */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00279" name="l00279"></a><span class="lineno">  279</span> </div>
<div class="line"><a id="l00280" name="l00280"></a><span class="lineno">  280</span><span class="comment">/* Macros to create versioned symbols. */</span></div>
<div class="line"><a id="l00281" name="l00281"></a><span class="lineno">  281</span><span class="preprocessor">#ifndef NVTX_EXT_COUNTERS_VERSIONED_IDENTIFIERS_V1</span></div>
<div class="line"><a id="l00282" name="l00282"></a><span class="lineno">  282</span><span class="preprocessor">#define NVTX_EXT_COUNTERS_VERSIONED_IDENTIFIERS_V1</span></div>
<div class="line"><a id="l00283" name="l00283"></a><span class="lineno">  283</span><span class="preprocessor">#define NVTX_EXT_COUNTERS_VERSIONED_IDENTIFIER_L3(NAME, VERSION, COMPATID) \</span></div>
<div class="line"><a id="l00284" name="l00284"></a><span class="lineno">  284</span><span class="preprocessor">    NAME##_v##VERSION##_cnt##COMPATID</span></div>
<div class="line"><a id="l00285" name="l00285"></a><span class="lineno">  285</span><span class="preprocessor">#define NVTX_EXT_COUNTERS_VERSIONED_IDENTIFIER_L2(NAME, VERSION, COMPATID) \</span></div>
<div class="line"><a id="l00286" name="l00286"></a><span class="lineno">  286</span><span class="preprocessor">    NVTX_EXT_COUNTERS_VERSIONED_IDENTIFIER_L3(NAME, VERSION, COMPATID)</span></div>
<div class="line"><a id="l00287" name="l00287"></a><span class="lineno">  287</span><span class="preprocessor">#define NVTX_EXT_COUNTERS_VERSIONED_ID(NAME) \</span></div>
<div class="line"><a id="l00288" name="l00288"></a><span class="lineno">  288</span><span class="preprocessor">    NVTX_EXT_COUNTERS_VERSIONED_IDENTIFIER_L2(NAME, NVTX_VERSION, NVTX_EXT_COUNTERS_COMPATID)</span></div>
<div class="line"><a id="l00289" name="l00289"></a><span class="lineno">  289</span><span class="preprocessor">#endif </span><span class="comment">/* NVTX_EXT_COUNTERS_VERSIONED_IDENTIFIERS_V1 */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00290" name="l00290"></a><span class="lineno">  290</span> </div>
<div class="line"><a id="l00291" name="l00291"></a><span class="lineno">  291</span><span class="preprocessor">#ifdef __GNUC__</span></div>
<div class="line"><a id="l00292" name="l00292"></a><span class="lineno">  292</span><span class="preprocessor">#pragma GCC visibility push(internal)</span></div>
<div class="line"><a id="l00293" name="l00293"></a><span class="lineno">  293</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00294" name="l00294"></a><span class="lineno">  294</span> </div>
<div class="line"><a id="l00295" name="l00295"></a><span class="lineno">  295</span><span class="preprocessor">#define NVTX_EXT_TYPES_GUARD </span><span class="comment">/* Ensure other headers cannot be included directly. */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00296" name="l00296"></a><span class="lineno">  296</span><span class="preprocessor">#include &quot;nvtxDetail/nvtxExtTypes.h&quot;</span></div>
<div class="line"><a id="l00297" name="l00297"></a><span class="lineno">  297</span><span class="preprocessor">#undef NVTX_EXT_TYPES_GUARD</span></div>
<div class="line"><a id="l00298" name="l00298"></a><span class="lineno">  298</span> </div>
<div class="line"><a id="l00299" name="l00299"></a><span class="lineno">  299</span><span class="preprocessor">#ifndef NVTX_NO_IMPL</span></div>
<div class="line"><a id="l00300" name="l00300"></a><span class="lineno">  300</span><span class="preprocessor">#define NVTX_EXT_IMPL_COUNTERS_GUARD </span><span class="comment">/* Ensure other headers cannot be included directly. */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00301" name="l00301"></a><span class="lineno">  301</span><span class="preprocessor">#include &quot;nvtxDetail/nvtxExtImplCounters_v1.h&quot;</span></div>
<div class="line"><a id="l00302" name="l00302"></a><span class="lineno">  302</span><span class="preprocessor">#undef NVTX_EXT_IMPL_COUNTERS_GUARD</span></div>
<div class="line"><a id="l00303" name="l00303"></a><span class="lineno">  303</span><span class="preprocessor">#endif </span><span class="comment">/*NVTX_NO_IMPL*/</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00304" name="l00304"></a><span class="lineno">  304</span> </div>
<div class="line"><a id="l00305" name="l00305"></a><span class="lineno">  305</span><span class="preprocessor">#ifdef __GNUC__</span></div>
<div class="line"><a id="l00306" name="l00306"></a><span class="lineno">  306</span><span class="preprocessor">#pragma GCC visibility pop</span></div>
<div class="line"><a id="l00307" name="l00307"></a><span class="lineno">  307</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00308" name="l00308"></a><span class="lineno">  308</span> </div>
<div class="line"><a id="l00309" name="l00309"></a><span class="lineno">  309</span><span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a id="l00310" name="l00310"></a><span class="lineno">  310</span>}</div>
<div class="line"><a id="l00311" name="l00311"></a><span class="lineno">  311</span><span class="preprocessor">#endif </span><span class="comment">/* __cplusplus */</span><span class="preprocessor"></span></div>
<div class="ttc" id="astructnvtx_counter_attr__t_html"><div class="ttname"><a href="structnvtx_counter_attr__t.html">nvtxCounterAttr_t</a></div><div class="ttdoc">Attributes of a counter or counter group.</div><div class="ttdef"><b>Definition</b> <a href="nv_tools_ext_counters_8h_source.html#l00095">nvToolsExtCounters.h:96</a></div></div>
<div class="ttc" id="astructnvtx_counter_attr__t_html_a029534e6f708be20dbb6e220474b2d52"><div class="ttname"><a href="structnvtx_counter_attr__t.html#a029534e6f708be20dbb6e220474b2d52">nvtxCounterAttr_t::description</a></div><div class="ttdeci">const char * description</div><div class="ttdef"><b>Definition</b> <a href="nv_tools_ext_counters_8h_source.html#l00112">nvToolsExtCounters.h:112</a></div></div>
<div class="ttc" id="astructnvtx_counter_attr__t_html_a02bba10c2782ffd40efb00155b163917"><div class="ttname"><a href="structnvtx_counter_attr__t.html#a02bba10c2782ffd40efb00155b163917">nvtxCounterAttr_t::scopeId</a></div><div class="ttdeci">uint64_t scopeId</div><div class="ttdef"><b>Definition</b> <a href="nv_tools_ext_counters_8h_source.html#l00120">nvToolsExtCounters.h:120</a></div></div>
<div class="ttc" id="astructnvtx_counter_attr__t_html_a2ab25966e298a5742776ae1aa3bdf401"><div class="ttname"><a href="structnvtx_counter_attr__t.html#a2ab25966e298a5742776ae1aa3bdf401">nvtxCounterAttr_t::semantics</a></div><div class="ttdeci">const nvtxSemanticsHeader_t * semantics</div><div class="ttdef"><b>Definition</b> <a href="nv_tools_ext_counters_8h_source.html#l00129">nvToolsExtCounters.h:129</a></div></div>
<div class="ttc" id="astructnvtx_counter_attr__t_html_a383083b3ae94dedfb59ddca685abe0eb"><div class="ttname"><a href="structnvtx_counter_attr__t.html#a383083b3ae94dedfb59ddca685abe0eb">nvtxCounterAttr_t::schemaId</a></div><div class="ttdeci">uint64_t schemaId</div><div class="ttdef"><b>Definition</b> <a href="nv_tools_ext_counters_8h_source.html#l00103">nvToolsExtCounters.h:103</a></div></div>
<div class="ttc" id="astructnvtx_counter_attr__t_html_a74a6483547eb7f7946020dc2ffcf84fe"><div class="ttname"><a href="structnvtx_counter_attr__t.html#a74a6483547eb7f7946020dc2ffcf84fe">nvtxCounterAttr_t::counterId</a></div><div class="ttdeci">uint64_t counterId</div><div class="ttdef"><b>Definition</b> <a href="nv_tools_ext_counters_8h_source.html#l00136">nvToolsExtCounters.h:136</a></div></div>
<div class="ttc" id="astructnvtx_counter_attr__t_html_a9bc076586c6c5627632eb1bcd70b861e"><div class="ttname"><a href="structnvtx_counter_attr__t.html#a9bc076586c6c5627632eb1bcd70b861e">nvtxCounterAttr_t::name</a></div><div class="ttdeci">const char * name</div><div class="ttdef"><b>Definition</b> <a href="nv_tools_ext_counters_8h_source.html#l00106">nvToolsExtCounters.h:106</a></div></div>
<div class="ttc" id="astructnvtx_counter_batch__t_html"><div class="ttname"><a href="structnvtx_counter_batch__t.html">nvtxCounterBatch_t</a></div><div class="ttdoc">Helper struct to submit a batch of counters.</div><div class="ttdef"><b>Definition</b> <a href="nv_tools_ext_counters_8h_source.html#l00147">nvToolsExtCounters.h:148</a></div></div>
<div class="ttc" id="astructnvtx_counter_batch__t_html_a22e39eb11f801703154a9530474991ac"><div class="ttname"><a href="structnvtx_counter_batch__t.html#a22e39eb11f801703154a9530474991ac">nvtxCounterBatch_t::timestamps</a></div><div class="ttdeci">const int64_t * timestamps</div><div class="ttdef"><b>Definition</b> <a href="nv_tools_ext_counters_8h_source.html#l00175">nvToolsExtCounters.h:175</a></div></div>
<div class="ttc" id="astructnvtx_counter_batch__t_html_a3b577fef504751dfe3427916f6e273d8"><div class="ttname"><a href="structnvtx_counter_batch__t.html#a3b577fef504751dfe3427916f6e273d8">nvtxCounterBatch_t::flags</a></div><div class="ttdeci">uint64_t flags</div><div class="ttdef"><b>Definition</b> <a href="nv_tools_ext_counters_8h_source.html#l00165">nvToolsExtCounters.h:165</a></div></div>
<div class="ttc" id="astructnvtx_counter_batch__t_html_a4196d6a8a534213ac31222cc19fb174e"><div class="ttname"><a href="structnvtx_counter_batch__t.html#a4196d6a8a534213ac31222cc19fb174e">nvtxCounterBatch_t::counters</a></div><div class="ttdeci">const void * counters</div><div class="ttdef"><b>Definition</b> <a href="nv_tools_ext_counters_8h_source.html#l00156">nvToolsExtCounters.h:156</a></div></div>
<div class="ttc" id="astructnvtx_counter_batch__t_html_a55051fa530e11935d88669e619c6b6a4"><div class="ttname"><a href="structnvtx_counter_batch__t.html#a55051fa530e11935d88669e619c6b6a4">nvtxCounterBatch_t::counterId</a></div><div class="ttdeci">uint64_t counterId</div><div class="ttdef"><b>Definition</b> <a href="nv_tools_ext_counters_8h_source.html#l00153">nvToolsExtCounters.h:153</a></div></div>
<div class="ttc" id="astructnvtx_counter_batch__t_html_ada5def99a25f1654b55a7b92e02846dd"><div class="ttname"><a href="structnvtx_counter_batch__t.html#ada5def99a25f1654b55a7b92e02846dd">nvtxCounterBatch_t::countersSize</a></div><div class="ttdeci">size_t countersSize</div><div class="ttdef"><b>Definition</b> <a href="nv_tools_ext_counters_8h_source.html#l00159">nvToolsExtCounters.h:159</a></div></div>
<div class="ttc" id="astructnvtx_counter_batch__t_html_afb5cc56e00d8bdb1edc1058d4c36ef35"><div class="ttname"><a href="structnvtx_counter_batch__t.html#afb5cc56e00d8bdb1edc1058d4c36ef35">nvtxCounterBatch_t::timestampsSize</a></div><div class="ttdeci">size_t timestampsSize</div><div class="ttdef"><b>Definition</b> <a href="nv_tools_ext_counters_8h_source.html#l00178">nvToolsExtCounters.h:178</a></div></div>
<div class="ttc" id="astructnvtx_semantics_header__t_html"><div class="ttname"><a href="structnvtx_semantics_header__t.html">nvtxSemanticsHeader_t</a></div><div class="ttdoc">Header of the payload entry's semantic field.</div><div class="ttdef"><b>Definition</b> <a href="nv_tools_ext_payload_8h_source.html#l00651">nvToolsExtPayload.h:652</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
</small></address>
</body>
</html>
